


class Singleton(object):    
    @classmethod
    def Instance(cls):
        if not hasattr(cls, "s_Instance"):
            cls.s_Instance = cls()
        return cls.s_Instance
    
    
    
class SingletonTest(Singleton):
    def Func(self):
        print "SingletonTest"
    
if __name__ == '__main__':
    SingletonTest.Instance().Func()